package com.iflytek.read.bean;

/**
 * @author wangshuai
 */
public class FloatWindowBean {

    /**
     * type = 1 展示悬浮框， type = 2 隐藏悬浮框,
     * type = 3 听单列表播放, type = 4 听但列表停止播放
     */
    private int type;

    /**
     * readType = 0 文件朗读，readType = 1 复制朗读
     */
    private int readType;

    /**
     * 是tts音频链接
     */
    private String url1;

    /**
     * 是文件id(也是小说id)
     */
    private String novelId;

    /**
     * 是章节id(如果readType = 1 是复制朗读，chapterId是"")
     */
    private String chapterId;

    /**
     * 是当前播放的是第几个切片的id
     */
    private String sliceId;

    /**
     * 是当前播放的切片内容
     */
    private String sliceContent;

    /**
     * 是背景音乐链接
     */
    private String url2;

    /**
     * 发音人
     */
    private String anchorName;

    /**
     * 语速
     */
    private String speed;

    /**
     * 音量
     */
    private int volume;

    /**
     * token
     */
    private String token;

    /**
     * 定时关闭时间
     */
    private String closeTime;

    /**
     * 切片在本章的位置
     */
    private int index;

    /**
     * 本章节一共几个切片
     */
    private int total;

    /**
     * 内容长度
     */
    private int contentLength;

    /**
     * 文件的路径
     */
    private String filePath;

    /**
     * 播放模式 1：单曲循环；2：列表循环
     */
    private String circulationMode;

    /**
     * 字体
     */
    private String font;

    /**
     * 当前播放的切片下标，默认从 1 开始
     */
    private int currentIndex;

    /**
     * 保存当前音频的播放位置
     */
    private String seekPosition;

    /**
     * 当前章节读到第几个切片
     */
    private String textIndex;

    /**
     * 保存进度条值
     */
    private String progressValue;

    /**
     * 文字高亮位置
     */
    private String charIndex;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setSliceContent(String sliceContent) {
        this.sliceContent = sliceContent;
    }

    public String getTextIndex() {
        return textIndex;
    }

    public void setTextIndex(String textIndex) {
        this.textIndex = textIndex;
    }

    public String getSeekPosition() {
        return seekPosition;
    }

    public void setSeekPosition(String seekPosition) {
        this.seekPosition = seekPosition;
    }

    public String getProgressValue() {
        return progressValue;
    }

    public void setProgressValue(String progressValue) {
        this.progressValue = progressValue;
    }

    public String getCharIndex() {
        return charIndex;
    }

    public void setCharIndex(String charIndex) {
        this.charIndex = charIndex;
    }

    public int getCurrentIndex() {
        return currentIndex;
    }

    public void setCurrentIndex(int currentIndex) {
        this.currentIndex = currentIndex;
    }

    public String getCirculationMode() {
        return circulationMode;
    }

    public void setCirculationMode(String circulationMode) {
        this.circulationMode = circulationMode;
    }

    public String getFont() {
        return font;
    }

    public void setFont(String font) {
        this.font = font;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(String closeTime) {
        this.closeTime = closeTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAnchorName() {
        return anchorName;
    }

    public void setAnchorName(String anchorName) {
        this.anchorName = anchorName;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public int getVolume() {
        return volume;
    }

    public void setVolume(int volume) {
        this.volume = volume;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getReadType() {
        return readType;
    }

    public void setReadType(int readType) {
        this.readType = readType;
    }

    public String getUrl1() {
        return url1;
    }

    public void setUrl1(String url) {
        this.url1 = url;
    }

    public String getNovelId() {
        return novelId;
    }

    public void setNovelId(String novelId) {
        this.novelId = novelId;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getSliceId() {
        return sliceId;
    }

    public void setSliceId(String sliceId) {
        this.sliceId = sliceId;
    }

    public String getSliceContent() {
        return sliceContent;
    }

    public String getUrl2() {
        return url2;
    }

    public void setUrl2(String url2) {
        this.url2 = url2;
    }

    public int getContentLength() {
        return contentLength;
    }

    public void setContentLength(int contentLength) {
        this.contentLength = contentLength;
    }

    @Override
    public String toString() {
        return "FloatWindowBean{" +
                "type=" + type +
                ", readType=" + readType +
                ", url1='" + url1 + '\'' +
                ", novelId='" + novelId + '\'' +
                ", chapterId='" + chapterId + '\'' +
                ", sliceId='" + sliceId + '\'' +
                ", sliceContent='" + sliceContent + '\'' +
                ", url2='" + url2 + '\'' +
                ", anchorName='" + anchorName + '\'' +
                ", speed='" + speed + '\'' +
                ", volume='" + volume + '\'' +
                ", circulationMode='" + circulationMode + '\'' +
                ", font='" + font + '\'' +
                ", currentIndex='" + currentIndex + '\'' +
                ", textIndex='" + textIndex + '\'' +
                ", seekPosition='" + seekPosition + '\'' +
                ", progressValue='" + progressValue + '\'' +
                ", charIndex='" + charIndex + '\'' +
                ", index='" + index + '\'' +
                ", total='" + total + '\'' +
                ", contentLength='" + contentLength + '\'' +
                '}';
    }
}